Optimal. Leaf size=191 \[ \frac {x \sin ^4\left (a+b \log \left (c x^n\right )\right )}{16 b^2 n^2+1}-\frac {4 b n x \sin ^3\left (a+b \log \left (c x^n\right )\right ) \cos \left (a+b \log \left (c x^n\right )\right )}{16 b^2 n^2+1}+\frac {12 b^2 n^2 x \sin ^2\left (a+b \log \left (c x^n\right )\right )}{64 b^4 n^4+20 b^2 n^2+1}-\frac {24 b^3 n^3 x \sin \left (a+b \log \left (c x^n\right )\right ) \cos \left (a+b \log \left (c x^n\right )\right )}{64 b^4 n^4+20 b^2 n^2+1}+\frac {24 b^4 n^4 x}{64 b^4 n^4+20 b^2 n^2+1} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 191, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {4477, 8} \[ \frac {12 b^2 n^2 x \sin ^2\left (a+b \log \left (c x^n\right )\right )}{64 b^4 n^4+20 b^2 n^2+1}+\frac {x \sin ^4\left (a+b \log \left (c x^n\right )\right )}{16 b^2 n^2+1}-\frac {4 b n x \sin ^3\left (a+b \log \left (c x^n\right )\right ) \cos \left (a+b \log \left (c x^n\right )\right )}{16 b^2 n^2+1}-\frac {24 b^3 n^3 x \sin \left (a+b \log \left (c x^n\right )\right ) \cos \left (a+b \log \left (c x^n\right )\right )}{64 b^4 n^4+20 b^2 n^2+1}+\frac {24 b^4 n^4 x}{64 b^4 n^4+20 b^2 n^2+1} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 4477
Rubi steps
\begin {align*} \int \sin ^4\left (a+b \log \left (c x^n\right )\right ) \, dx &=-\frac {4 b n x \cos \left (a+b \log \left (c x^n\right )\right ) \sin ^3\left (a+b \log \left (c x^n\right )\right )}{1+16 b^2 n^2}+\frac {x \sin ^4\left (a+b \log \left (c x^n\right )\right )}{1+16 b^2 n^2}+\frac {\left (12 b^2 n^2\right ) \int \sin ^2\left (a+b \log \left (c x^n\right )\right ) \, dx}{1+16 b^2 n^2}\\ &=-\frac {24 b^3 n^3 x \cos \left (a+b \log \left (c x^n\right )\right ) \sin \left (a+b \log \left (c x^n\right )\right )}{1+20 b^2 n^2+64 b^4 n^4}+\frac {12 b^2 n^2 x \sin ^2\left (a+b \log \left (c x^n\right )\right )}{1+20 b^2 n^2+64 b^4 n^4}-\frac {4 b n x \cos \left (a+b \log \left (c x^n\right )\right ) \sin ^3\left (a+b \log \left (c x^n\right )\right )}{1+16 b^2 n^2}+\frac {x \sin ^4\left (a+b \log \left (c x^n\right )\right )}{1+16 b^2 n^2}+\frac {\left (24 b^4 n^4\right ) \int 1 \, dx}{1+20 b^2 n^2+64 b^4 n^4}\\ &=\frac {24 b^4 n^4 x}{1+20 b^2 n^2+64 b^4 n^4}-\frac {24 b^3 n^3 x \cos \left (a+b \log \left (c x^n\right )\right ) \sin \left (a+b \log \left (c x^n\right )\right )}{1+20 b^2 n^2+64 b^4 n^4}+\frac {12 b^2 n^2 x \sin ^2\left (a+b \log \left (c x^n\right )\right )}{1+20 b^2 n^2+64 b^4 n^4}-\frac {4 b n x \cos \left (a+b \log \left (c x^n\right )\right ) \sin ^3\left (a+b \log \left (c x^n\right )\right )}{1+16 b^2 n^2}+\frac {x \sin ^4\left (a+b \log \left (c x^n\right )\right )}{1+16 b^2 n^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.39, size = 168, normalized size = 0.88 \[ \frac {x \left (-128 b^3 n^3 \sin \left (2 \left (a+b \log \left (c x^n\right )\right )\right )+16 b^3 n^3 \sin \left (4 \left (a+b \log \left (c x^n\right )\right )\right )-4 \left (16 b^2 n^2+1\right ) \cos \left (2 \left (a+b \log \left (c x^n\right )\right )\right )+\left (4 b^2 n^2+1\right ) \cos \left (4 \left (a+b \log \left (c x^n\right )\right )\right )-8 b n \sin \left (2 \left (a+b \log \left (c x^n\right )\right )\right )+4 b n \sin \left (4 \left (a+b \log \left (c x^n\right )\right )\right )+192 b^4 n^4+60 b^2 n^2+3\right )}{8 \left (64 b^4 n^4+20 b^2 n^2+1\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 165, normalized size = 0.86 \[ \frac {{\left (4 \, b^{2} n^{2} + 1\right )} x \cos \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{4} - 2 \, {\left (10 \, b^{2} n^{2} + 1\right )} x \cos \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{2} + {\left (24 \, b^{4} n^{4} + 16 \, b^{2} n^{2} + 1\right )} x + 4 \, {\left ({\left (4 \, b^{3} n^{3} + b n\right )} x \cos \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{3} - {\left (10 \, b^{3} n^{3} + b n\right )} x \cos \left (b n \log \relax (x) + b \log \relax (c) + a\right )\right )} \sin \left (b n \log \relax (x) + b \log \relax (c) + a\right )}{64 \, b^{4} n^{4} + 20 \, b^{2} n^{2} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.07, size = 0, normalized size = 0.00 \[ \int \sin ^{4}\left (a +b \ln \left (c \,x^{n}\right )\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.41, size = 1078, normalized size = 5.64 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.86, size = 117, normalized size = 0.61 \[ \frac {3\,x}{8}-\frac {x\,{\mathrm {e}}^{-a\,2{}\mathrm {i}}\,\frac {1}{{\left (c\,x^n\right )}^{b\,2{}\mathrm {i}}}\,1{}\mathrm {i}}{8\,b\,n+4{}\mathrm {i}}-\frac {x\,{\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,2{}\mathrm {i}}}{4+b\,n\,8{}\mathrm {i}}+\frac {x\,{\mathrm {e}}^{-a\,4{}\mathrm {i}}\,\frac {1}{{\left (c\,x^n\right )}^{b\,4{}\mathrm {i}}}\,1{}\mathrm {i}}{64\,b\,n+16{}\mathrm {i}}+\frac {x\,{\mathrm {e}}^{a\,4{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,4{}\mathrm {i}}}{16+b\,n\,64{}\mathrm {i}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________